package com.yaoxiaowen.project2;

import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.yaoxiaowen.project2.base.BaseActivity;

import butterknife.BindView;

public class TestMainActivity extends BaseActivity {

    @BindView(R.id.mainSwitchGoneBtn)
    Button goneBtn;
    @BindView(R.id.mainSwitchVisibleBtn)
    Button visibleBtn;
    @BindView(R.id.mainBottomBtn)
    Button mainBottomBtn;

    @BindView(R.id.mainErrorTv)
    TextView mainErrorTv;

    public static final String TAG = "TestMainActivity";
    private static final boolean DEBUG = true;
    private static final boolean IS_SHOW = true;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_test_main;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
    }

    @Override
    protected void initListener() {
        goneBtn.setOnClickListener(this);
        visibleBtn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        super.onClick(v);
        switch (v.getId()){
            case R.id.mainSwitchVisibleBtn:

                break;
            case R.id.mainSwitchGoneBtn:
                mainErrorTv.setError("放个错误试试");
                break;
        }
    }
}
